<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="sys" uri="/sys-tag" %>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>更改博客类型</title>
</head>
<lui:context/>
<u:View basePath="/res-datum/blog" userJS="switchBlogType" userCSS="switchBlogType" delayLoadJs="false" res="jquery.ztree">
<body>
	<form id="categorySwitchFrm" class='m-cust'>
		<input name="from" value="${requestScope.from }" hidden="hidden">
		<lui:ajax url="${ctx }/sys/code/findCodeInfoByTypeId" id="findBlogCategoryAjax" data="{'codeTypeId':'blogType'}" 
        	contentType="application/x-www-form-urlencoded" autoSend="true"/>
		<lui:tree nodeTitleKey="codeInfoName" nodeIdKey="id" ajax="findBlogCategoryAjax" id="categoryTree" expandAll="true" className="code-list"
            parentIdKey="ext1" dataStructure="array" nodeNameKey="codeInfoName" nodeChildrenKey="children" maxLayer="3" />
		<lui:dialogFooter>
			<button class="btn btn-primary m-btn" type="button" onclick="SwitchBlogTypePage.save()" data-dismiss="dialog-box">更改</button>
		    <button class="btn btn-default m-btn" type="button" data-dismiss="dialog-box">关闭</button>
		</lui:dialogFooter>
    </form>
</body>
</u:View>
</html>